<%-- 
    Document   : verwalter
    Created on : Mar 8, 2012, 2:57:08 PM
    Author     : frances
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--        <script type="text/javascript" src="js/superfish.js"></script>-->
        <title>JSP Page</title>
        
        <script type="text/javascript">

            // initialise plugins
            jQuery(function(){
                jQuery('ul.sf-menu').superfish();
            });
             
            function checkAuth(){
              if(<%=request.getParameter("loginAttempt")%>==false){
                 document.write('<span class="errLog">Authentication failed.</span>');
               }
               else if (<%=request.getParameter("loginMax")%>==true){
                   document.write('<span class="errLog">You have reached your maximum login attempts. Please try again later.</span>');
               }
         }

        </script>
        
    </head>
    <body>
            <center>
                <table width="500" border="0"> 

                    <td style="background-color:silver; width:200px;text-align:top;border-radius:5px;">
                        <img src="../images/head.png" style="float: left;height: 50px;"></img><br><br><br>
                        <hr width="500px"/>
                        <form class="signup2" method="post" action="../LoginManagerServlet">

                            <b><p style="font-family: verdana; font-size: 11px;">
                                 <script type="text/javascript">checkAuth();</script><br>
                                    Username:<br>
                                    <input name="username" type="text"><br>

                                    Password:<br>
                                    <input name="password" type="password"><br>

                            <button type="submit" id="submitButton">Sign in!</button>
                        </form>
                    </td>
                </table>
    </body>
</html>
